﻿//24.Write a program that reads a list of words, separated by spaces and prints the list in an alphabetical order.

using System;

namespace AlphabeticalOrderList
{
    class AlphabeticalOrderList
    {
        static void Main(string[] args)
        {
            Console.Write("Enter some words: ");
            string[] words = Console.ReadLine().Split(' ');

            Array.Sort(words);

            foreach (string word in words)
            {
                Console.WriteLine(word);
            }
        }
    }
}
